package com.personal.system.mapper.sys;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.personal.model.system.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 组织机构 Mapper 接口
 * </p>
 *
 * @author HD
 * @since 2022-10-29
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {

//    @DataScope({@DataColumn(key = "deptName", value = "id")})
    List<SysDept> selectDeptList(@Param("ew") Wrapper<SysDept> queryWrapper);

    List<Long> selectDeptListByRoleId(Long roleId);

}
